import Vue from 'vue'
import App from './App'
import store from './store'
import mixin from './mixin/wx'
import $utils from './utils'
import $pt from './utils/platform/wx'
import $fly from './utils/request/wx'
import 'mpvue-weui/src/style/weui.css'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

// 混入
Vue.mixin(mixin)

// 设置全局变量
Vue.prototype.globalData = getApp().globalData

// 平台原生方法转化
Vue.prototype.$pt = $pt
Vue.prototype.$platform = 'wx'

// fly网络请求
Vue.prototype.$fly = $fly

// 全局方法
Vue.prototype.$utils = $utils

// Vuex存储
Vue.prototype.$store = store
